package cn.chenxinjie.hrm.feign;

import cn.chenxinjie.hrm.domain.LoginUser;
import cn.chenxinjie.hrm.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "hrm-auth",fallbackFactory = LoginUserFallBack.class)
public interface LoginUserFeign {
    @PostMapping("/loginUser/entering")
    AjaxResult entering(@RequestBody LoginUser loginUser);
}
